package com.lemon.cloud.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.lemon.cloud.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
    * 文件管理表
    */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "sys_file")
public class SysFile extends BaseEntity implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @Schema(description = "文件名称")
    @TableField(value = "file_name")
    private String fileName;

    @Schema(description = "桶名称")
    @TableField(value = "bucket_name")
    private String bucketName;

    @Schema(description = "文件原名称")
    @TableField(value = "original")
    private String original;

    @TableField(value = "type")
    @Schema(description = "文件类型")
    private String type;

    /**
     * 文件大小
     */
    @Schema(description = "文件大小")
    @TableField(value = "file_size")
    private Long fileSize;

    /**
     * 0-正常，1-删除
     */
    @TableLogic
    private String delFlag;

    private static final long serialVersionUID = 1L;
}
